package com.ydkj.a37e_mall.Classes.Fragment;

import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;

import com.loopj.android.http.RequestParams;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.ydkj.a37e_mall.R;

/**
 * Created by Administrator on 2017/1/9.
 */

public class BaseFg extends Fragment {
    public static String ssss = "ssss";
    public static final int LOAD = 0;// 加载
    public static final int REFRESH = 1;// 刷新
    public static final int MORE = 2;// 更多
    public static String secret;
    public static RequestParams params;
    DisplayImageOptions displayImageOptions = new DisplayImageOptions.Builder().showImageOnLoading(R.mipmap.loader)
            .showImageForEmptyUri(R.mipmap.loader).showImageOnFail(R.mipmap.loader).cacheInMemory(true).cacheOnDisk(true)
            .considerExifParams(true).bitmapConfig(Bitmap.Config.RGB_565).build();

    DisplayImageOptions displayImageOptions_tejia = new DisplayImageOptions.Builder().showImageOnLoading(R.mipmap.loader_tejia)
            .showImageForEmptyUri(R.mipmap.loader_tejia).showImageOnFail(R.mipmap.loader_tejia).cacheInMemory(true).cacheOnDisk(true)
            .considerExifParams(true).bitmapConfig(Bitmap.Config.RGB_565).build();

    DisplayImageOptions displayImageOptions_tonggaolan = new DisplayImageOptions.Builder().showImageOnLoading(R.mipmap.loader_tonggaolan)
            .showImageForEmptyUri(R.mipmap.loader_tonggaolan).showImageOnFail(R.mipmap.loader_tonggaolan).cacheInMemory(true).cacheOnDisk(true)
            .considerExifParams(true).bitmapConfig(Bitmap.Config.RGB_565).build();

    DisplayImageOptions displayImageOptions_loader = new DisplayImageOptions.Builder().showImageOnLoading(R.mipmap.loader)
            .showImageForEmptyUri(R.mipmap.loader).showImageOnFail(R.mipmap.loader).cacheInMemory(true).cacheOnDisk(true)
            .considerExifParams(true).bitmapConfig(Bitmap.Config.RGB_565).build();

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        params = new RequestParams();

    }


}
